
package com.prabhat.webapp.base;

import java.io.Serializable;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

import org.apache.cxf.jaxrs.model.wadl.Description;
import org.apache.cxf.jaxrs.model.wadl.Descriptions;
import org.apache.cxf.jaxrs.model.wadl.DocTarget;
import org.codehaus.jackson.annotate.JsonIgnore;


/**
 * <p>Java class for Credentials complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="Credentials">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="userName" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         &lt;element name="password" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         &lt;element name="agentId" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         &lt;element name="agentName" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@Description(value = "Holds the credentials format to be sent or received from the server end.", target = DocTarget.RESOURCE)
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(
		name = "Credentials", 
		propOrder = {"userName", "password", "agentId", "agentName"},
		namespace="http://www.gharari.com"
		)
public class Credentials implements Serializable {

    protected String userName;
  //  @JsonIgnore
    protected String password;
    protected String agentId;
    protected String agentName;

    /**
     * Gets the value of the userName property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    @Descriptions({
		@Description(value = "Unique username of the user can be a email, mobile number or login id of the user.", target = DocTarget.PARAM),
		@Description(value = "abc@example.com", target = DocTarget.PARAM)
	})
    public String getUserName() {
        return userName;
    }

    /**
     * Sets the value of the userName property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setUserName(String value) {
        this.userName = value;
    }

    /**
     * Gets the value of the password property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    @Descriptions({
		@Description(value = "Password for the username provided.", target = DocTarget.PARAM),
		@Description(value = "*****", target = DocTarget.PARAM)
	})
    public String getPassword() {
        return password;
    }

    /**
     * Sets the value of the password property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setPassword(String value) {
        this.password = value;
    }

    /**
     * Gets the value of the agentId property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    @Descriptions({
		@Description(value = "Unique agent id.", target = DocTarget.PARAM),
		@Description(value = "12312", target = DocTarget.PARAM)
	})
    public String getAgentId() {
        return agentId;
    }

    /**
     * Sets the value of the agentId property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setAgentId(String value) {
        this.agentId = value;
    }

    /**
     * Gets the value of the agentName property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    @Descriptions({
		@Description(value = "Agent name", target = DocTarget.PARAM),
		@Description(value = "xyz", target = DocTarget.PARAM)
	})
    public String getAgentName() {
        return agentName;
    }

    /**
     * Sets the value of the agentName property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setAgentName(String value) {
        this.agentName = value;
    }

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Credentials [userName=" + userName + ", password=" + password
				+ ", agentId=" + agentId + ", agentName=" + agentName + "]";
	}

}
